package com.iwhalecloud.bss.kite.cucc.common.validate.validator;

import com.iwhalecloud.bss.kite.common.validate.validator.AbstractValidator;
import org.apache.commons.lang3.StringUtils;
import org.springframework.util.ObjectUtils;

/**
 * KiteDateTime 注解校验器
 * 
 * @author liu.dun
 * @since 2019/9/1
 */
public class KiteDateTimeValidator extends AbstractValidator {

    @Override
    public boolean isValidate(Object parameter) {

        return !((parameter instanceof String && StringUtils.isBlank((String) parameter))
            || ObjectUtils.isEmpty(parameter));
    }
}
